<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let arr1 = [1, 2, 3, 6, 7, 9, 8]
        // console.log(Math.max(...arr1))
        // console.log(Math.min(...arr1))
        console.log(Math.max(...arr1))
        let arr2 = [4, 5, 6]
        let arr = [...arr1, ...arr2]
        console.log(...arr)
    </script>
</body>

</html>